package po;

import java.io.Serializable;
import java.util.HashSet;

import enums.UserIdentity;

public class MemberPO extends UserPO implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private HashSet<GiftPO> giftSet;
	private int point;
	
	public MemberPO(int id, String username, String password,
			UserIdentity identity, HashSet<GiftPO> giftSet, int point) {
		super(id, username, password, identity);
		this.giftSet = giftSet;
		this.point = point;
	}
	
	public MemberPO() {
		super();
		this.giftSet = new HashSet<GiftPO>();
		this.point = 0;
	}

	@Override
	public String toString() {
		return "MemberPO [giftSet=" + giftSet + ", point=" + point + "]" + super.toString();
	}

	public HashSet<GiftPO> getGiftSet() {
		return giftSet;
	}
	
	public int getPoint() {
		return point;
	}
	
}
